﻿<Controls:MetroWindow x:Class="FR.SAFTAnalyser.Views.AboutView"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                      xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
                      meffed:ViewModelLocator.ViewModel="AboutViewModel"
                      Title="Sobre" ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="600"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="Autor:" Grid.Column="0" Grid.Row="0" Margin="5" Padding="3"/>
        <TextBlock Text="Web site:" Grid.Column="0" Grid.Row="1" Margin="5" Padding="3"/>
        <TextBlock Text="SAF-T PT resources:" Grid.Column="0" Grid.Row="2" Margin="5" Padding="3"/>
        <TextBlock Text="SAF-T PT AT:" Grid.Column="0" Grid.Row="3" Margin="5" Padding="3"/>
        <TextBlock Text="Versão:" Grid.Column="0" Grid.Row="4" Margin="5" Padding="3"/>
        
        <TextBlock Text="Frederico Regateiro" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Margin="5" Padding="3"/>
        <TextBlock Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Margin="5" Padding="3">
            <Hyperlink Command="{Binding DoOpenMainWebSiteCommand}">
                <TextBlock Text="http://saftpt.codeplex.com/"/>
            </Hyperlink>
        </TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="5" Padding="3">
            <Hyperlink Command="{Binding DoOpenSaftWebSiteCommand}">
                <TextBlock Text="http://www.saftpt.com/"/>
            </Hyperlink>
        </TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Margin="5" Padding="3">
            <Hyperlink Command="{Binding DoOpenPortalFinancasCommand}">
                <TextBlock Text="http://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/NEWS_SAF-T_PT.htm"/>
            </Hyperlink>
        </TextBlock>

        <DockPanel Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2">
            <TextBlock Text="{Binding Version}" DockPanel.Dock="Top" Margin="5" Padding="3"/>
            
            <!--<TextBlock DockPanel.Dock="Top" Margin="5" Padding="3">
                <Hyperlink Command="{Binding DoCheckUpdatesCommand}">
                    <TextBlock Text="{Binding UserUpdateAction}"/>
                </Hyperlink>
            </TextBlock>
            <Controls:ProgressRing IsActive="{Binding IsCheckingForUpdate}" />
            
            <TextBlock DockPanel.Dock="Top" Text="{Binding UpdateStatus}" />-->
        </DockPanel>
        
    </Grid>
</Controls:MetroWindow>
